[NTG-context] Re: Define a new command that inherits from multiple other command options

2024-04-27 Thread Wolfgang Schuster
a way to inherit their options but the "framed" and "counter" mechanism supports it. To use the framed mechanism with your own command replace \installcommandhandler with \installframedcommandhandler. This creates a command named \inherited...framed which can be customi

[NTG-context] Wiki - question about Command/ pages which start with a space character

2024-04-14 Thread garulfo
stofsynonyms Command/ completeregister Command/ copylabeltext Command/ ctxfunction Command/ ctxfunctiondefinition Command/ currentlabel Command/ delimitedtext Command/ description Command/ enumeration Command/ fence Command/ fraction Command/ framed Command/ framedtext Command/ getbuffer Command/ hbox Command

[NTG-context] Re: Fwd: Re: how to apply gradient color to a piece of text?

2024-04-10 Thread Hans Hagen
d you mean you will add > this feature for next updates? we're talking outlines so that is paths which implies no search but you can do this (Keith and/or Hraban will explain and/or wikify it) \starttext \startbuffer[MyText]      \definedfont[name:texgyrepagellabold*d

[NTG-context] Re: Fwd: Re: how to apply gradient color to a piece of text?

2024-04-09 Thread seyal zavira
t pdf > > the third example currently does not work. did you mean you will add > > this feature for next updates? > we're talking outlines so that is paths which implies no search but you > can do this (Keith and/or Hraban will explain and/or wikify it) > > \starttext > > \startbuff

[NTG-context] Re: Fwd: Re: how to apply gradient color to a piece of text?

2024-04-08 Thread Hans Hagen
hs which implies no search but you can do this (Keith and/or Hraban will explain and/or wikify it) \starttext \startbuffer[MyText] \definedfont[name:texgyrepagellabold*default]foo f o o% \stopbuffer \startbuffer[MyText] \framed[align=normal,frame=off]{\input{tufte}}% \stopbuffer \setb

[NTG-context] Re: what about "textdisplay"?

2024-04-02 Thread Hans Hagen via ntg-context
around them so not meant for e.g. section heads or whatever text; it's for images, framed stuff, maybe bTABLE etc Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH

[NTG-context] Re: Unknown units es and dk

2024-03-24 Thread Hans Hagen
In German, I call these "Spaßeinheiten" (units of measurement = "Maßeinheiten"; Spaß = fun; "units of leisurement" might be a good translation). Apart from being fun they are also useful, for instance the "ts" (and dk) make good framed offsets whe

[NTG-context] Re: Struggling with the distance and right margin text

2024-03-22 Thread Ursula Hermann
bodyfont[modern, 12.50pt] If these lines are irrelevant for the issue you are experiencing, please don’t include them. > \definemargindata [MyInMargin][inleft] > \definemarginframed[MyInMargin][topframe=on,bottomframe=on,rulethickness=1pt,width=1.90cm] You define this margin framed, but you

[NTG-context] Re: Adjusted Chapter Headings

2024-03-19 Thread Jeroen
I have been able to achieve it as following, but the first frame width is fixed so will cause problems with other chapter numbers such as VIII \unexpanded\def\HeadTitle#1#2% {\hbox to \hsize \bgroup \hfill \setupframed[offset=.5em,frame=off] \tbox{\framed[width=22mm,align=right]{#1}}% \tbox

[NTG-context] Re: Struggling with the distance and right margin text

2024-03-15 Thread Pablo Rodriguez via ntg-context
are irrelevant for the issue you are experiencing, please don’t include them. > \definemargindata  [MyInMargin][inleft] > \definemarginframed[MyInMargin][topframe=on,bottomframe=on,rulethickness=1pt,width=1.90cm] You define this margin framed, but your sample makes no use of it. S

[NTG-context] Wiki page : Mixed languages sample (French, Ancient Greek, Arabic, Chinese)

2024-03-01 Thread Jean-Pierre Delange
and Chinese are introduced into a document written in French. With footnotes and a few framed lines. I submit this example for your perusal and ask you whether it could possibly appear on a wiki page devoted to the combination of non-European languages in the same text. In English translation

[NTG-context] Re: MetaPost lines in tables?

2024-02-22 Thread Hans Hagen via ntg-context
actor (old) dashfactor (new) \NC test \NC test and test and test and done \NC \NR \ML[1,1] \NC test \NC test and test and test and done \NC \NR \NC test \NC test and test and test and done \NC \NR \NC test \NC test and test and test and done \NC \NR \LL[1,10] \stoptabulate \frame

[NTG-context] Re: using an end of line as parameter

2024-02-19 Thread Hans Hagen
. For the example, I use this macro definition (which does no work!) \long\def\prueba #1\par#2\par#3\par#4ñ{\framed[frame=off,width=0.8\textwidth,corner=round,offset=1em,align=flushleft]% {{\bf Beispiel}: #1\\ \qquad  a) #2\\ \qquad  b) {\bf #3}\\ \qquad  c) #4 } I get: tex error on line 493 in file

[NTG-context] using an end of line as parameter

2024-02-19 Thread Miguel Diaz
does no work!) \long\def\prueba #1\par#2\par#3\par#4ñ{\framed[frame=off,width=0.8\textwidth,corner=round,offset=1em,align=flushleft]% {{\bf Beispiel}: #1\\ \qquad a) #2\\ \qquad b) {\bf #3}\\ \qquad c) #4 } I get: tex error on line 493 in file ./prueba.tex: The file ended when scanning

[NTG-context] Re: textbackground spacing offset

2024-01-31 Thread Hans Hagen
\framed{Foo} \stopframedtext \starttextbackground \framed{Foo} \stoptextbackground \stoptext How do it get the same spacing as in the framedtext case? Is there a solution to this? Or an explanation why the spacing differs? these are fundamentally different mechanisms .. you can play

[NTG-context] Re: textbackground spacing offset

2024-01-31 Thread Marco Patzer
tion=paragraph, >%% offset=overlay, %% does nothing >%% backgroundoffset=overlay, %% does nothing >%% depthcorrection=off, %% does nothing >%% topoffset=3mm,%% works, but only for positive values >background=, >frame=on] >

[NTG-context] Re: \framed{\externalfigure} vs \externalfigure[frame=on]

2024-01-27 Thread Jim
>> frame=on) but I didn't get the frame to play nicely (see example below). I >> can get the frame where I want it if instead I do >> \framed[frame=on,...]{\externalfigure...} >> but this leaves me wondering whether >> (1) I am misinterpreting the wik

[NTG-context] Re: \framed{\externalfigure} vs \externalfigure[frame=on]

2024-01-27 Thread Pablo Rodriguez via ntg-context
shows which keys and values \setupexternalfigure allows. > I tried to put a frame around a picture (using \externalfigure with > frame=on) but I didn't get the frame to play nicely (see example below). I > can get the frame where I want it if instead I do > \framed[f

[NTG-context] \framed{\externalfigure} vs \externalfigure[frame=on]

2024-01-27 Thread Jim
ere I want it if instead I do \framed[frame=on,...]{\externalfigure...} but this leaves me wondering whether (1) I am misinterpreting the wiki pages, (2) The wiki pages are misleading/wrong, or (3) There is a bug in some code. If anyone would care to enlighten me, I would appreciate it. In

[NTG-context] Re: \starttable questions

2024-01-26 Thread Jim
for some more reading. > You can do: \setupTABLE[2][3] to select the formatting for row 3 and column 2 > (or the other way around ... always forget). In the worst case, you can > always do > ... > \NC .. \NC[options] ... \NC \NR > > Each cell is just a \framed[

[NTG-context] Re: \starttable questions

2024-01-26 Thread Aditya Mahajan
for row 3 and column 2 (or the other way around ... always forget). In the worst case, you can always do ... \NC .. \NC[options] ... \NC \NR Each cell is just a \framed[...]; so all options for \framed[...] work for Natural Tables.

[NTG-context] Re: \starttable questions

2024-01-25 Thread Jim
vrules don't use tabulate >> to create the tables. >> Coincidence? I think not. :-) > Table which rely on rules to make the content readable have a serious > problem > (read Edward Tufte books how you can improve the visual style) but the > better > alternative in this c

[NTG-context] Re: \starttable questions

2024-01-25 Thread Wolfgang Schuster
es. Below is a example which uses the table like wrapper for natural tables which makes adding rules and changing the padding around text very simple because each table cell is a \framed block with all its options. \starttext \startsetups[ruledtable]   \setupTABLE [frame=off,align=middle,loffset=.5

[NTG-context] Re: After Compiling the Context test, there was no PDF.

2024-01-24 Thread Shiv Shankar Dayal
> > \startMPcode > > draw textext("hello") rotated 45 ; > > \stopMPcode > > > > \framed{hello} > > > > \stopmode > > > > \startnotmode[mkiv] > > > > \startMPcode > > draw textext("hello

[NTG-context] Re: After Compiling the Context test, there was no PDF.

2024-01-24 Thread Ursula Hermann
draw textext("hello") rotated 45 ; \stopMPcode \framed{hello} \stopmode \startnotmode[mkiv] \startMPcode draw textext("hello") rotated -45 ; \stopMPcode \framed{hello} \stopnotmode \stoptext After compiling in the folder: Is this becaus

[NTG-context] Re: old style factorial symbol and theorems

2023-12-30 Thread Shiv Shankar Dayal
I tried this for old style factorial, but it appears much below the line in which it is used. How can I bring it up? On Wed, Dec 27, 2023 at 6:18 PM Shiv Shankar Dayal < shivshankar.da...@gmail.com> wrote: > > > A simple alternative to tikz is the usage of \framed. >>

[NTG-context] Re: old style factorial symbol and theorems

2023-12-27 Thread Mikael Sundqvist
Hi! Not by computer, and I'm sure Hans (or Wolfgang) has already shown a way to do the old factorial with the actuarian mechanism when I'm back to the computer... /Mikael Den ons 27 dec. 2023 13:49Shiv Shankar Dayal skrev: > > > A simple alternative to tikz is the usage o

[NTG-context] Re: old style factorial symbol and theorems

2023-12-27 Thread Shiv Shankar Dayal
A simple alternative to tikz is the usage of \framed. > > \define[1]\oldfact > {\inmframed[frame=off,strut=no,leftframe=on,bottomframe=on]{#1}} > > \starttext > > \m{\oldfact{n}} > > \stoptext > > Wolfgang > > Thanks a lot. It should work n

[NTG-context] Re: old style factorial symbol and theorems

2023-12-27 Thread Wolfgang Schuster
Shiv Shankar Dayal schrieb am 27.12.2023 um 13:31: What do you expect here to pass as argument to the oldfact command? I will pass something like n, 5, 10 etc. A simple alternative to tikz is the usage of \framed. \define[1]\oldfact   {\inmframed[frame=off,strut=no,leftframe

[NTG-context] framed: rounded corner oddity

2023-12-05 Thread Henning Hraban Ramm
Hi, in my ConTeXt book, some examples for \framed with rounded corners look odd, as if the MetaPost calculation of rounded corners fails. I can’t find a minimal example that shows the problem, and I can’t imagine which of the settings in my extensive environment would cause it. Find below

[NTG-context] textbackground spacing offset

2023-11-16 Thread Marco Patzer
nothing %% depthcorrection=off, %% does nothing %% topoffset=3mm,%% works, but only for positive values background=, frame=on] \starttext \startframedtext \framed{Foo} \stopframedtext \starttextbackground \framed{Foo} \stoptextbackground \stoptext How do

[NTG-context] Re: How to encircle text?

2023-11-05 Thread Pablo Rodriguez via ntg-context
xyscaled (OverlayWidth-OverlayLineWidth,OverlayHeight-OverlayLineWidth) withpen pencircle scaled OverlayLineWidth withcolor OverlayColor ; \stopusableMPgraphic \defineoverlay[MetaCirc][\useMPgraphic{MetaCirc}] a\dontleavehmode\framed [background=MetaCirc, bac

[NTG-context] Re: How to encircle text?

2023-11-05 Thread Hans Hagen via ntg-context
On 11/5/2023 7:23 AM, anton.chig...@mail.com wrote: I want to use \bigcirc to encircle text. Is there a way to do it. if you're wiling to compensate for its depth: \defineoverlay [BigCirc] [{\scale [width=\overlaywidth] {\setbox0\hpack{\bigcirc}\raise\dp0\box0}}] \framed

[NTG-context] Re: typearea

2023-10-29 Thread Thomas Meyer
[bcor=0mm,alphabets=3.1] \setuppagenumbering[alternative=doublesided] \starttext \dorecurse4{\framed[width=\textwidth,height=\textheight]{test}\page} \stoptext I got: texmf-dist/tex/context/third/typearea/t-typearea.tex' loading > Something like KOMA-TypeArea tex error   > tex

[NTG-context] typearea

2023-10-29 Thread Thomas Meyer
\dorecurse4{\framed[width=\textwidth,height=\textheight]{test}\page} \stoptext I got: texmf-dist/tex/context/third/typearea/t-typearea.tex' loading > Something like KOMA-TypeArea tex error   > tex error on line 89 in file /usr/local/texlive/2023/texmf-dist/tex/context/third/type

[NTG-context] Re: protrusion in framed

2023-10-20 Thread Csikos Bela
Csikos Bela schrieb am 20.10.2023 um 14:53: > Hello: > > Protrusioin doesn't work in framed environment. > > This is a short code: > > \definefontfeature[default][default][expansion=quality,protrusion=quality] > > \setupalign[hz,hanging] > > \showfram

[NTG-context] Re: protrusion in framed

2023-10-20 Thread Csikos Bela
I forgot to attach the pdf. Eredeti levél Hello:Protrusioin doesn't work in framed environment.This is a short code:\definefontfeature[default][default][expansion=quality,protrusion=quality]\setupalign[hz,hanging]\showframe\starttext\input tufte\blank\framed[frame=off,location

[NTG-context] Re: protrusion in framed

2023-10-20 Thread Wolfgang Schuster
Csikos Bela schrieb am 20.10.2023 um 14:53: Hello: Protrusioin doesn't work in framed environment. This is a short code: \definefontfeature[default][default][expansion=quality,protrusion=quality] \setupalign[hz,hanging] \showframe \starttext \input tufte \blank \framed[frame=off

[NTG-context] protrusion in framed

2023-10-20 Thread Csikos Bela
Hello:Protrusioin doesn't work in framed environment.This is a short code:\definefontfeature[default][default][expansion=quality,protrusion=quality]\setupalign[hz,hanging]\showframe\starttext\input tufte\blank\framed[frame=off,location=top,align=normal,offset=0pt]{\input tufte }\blank

[NTG-context] Re: Framed Text with Chapter Numbers as Counter

2023-09-17 Thread Wolfgang Schuster
Jeroen schrieb am 16.09.2023 um 22:28: This MWE has a framed text for some verbatim text (code) with as title ref. a counter 1, 2, etc.. Is there a way to change this frame text title as following with the chapter number and a sequential number and the title. Code Fragment 1.1 (The First

[NTG-context] Re: Framed Text with Chapter Numbers as Counter

2023-09-17 Thread Jeroen
\stopCode \stopchapter \stoptext Op zo 17 sep 2023 om 17:31 schreef Bruce Horrocks : > > > > On 16 Sep 2023, at 21:28, Jeroen wrote: > > > > This MWE has a framed text for some verbatim text (code) with as title > ref. a counter 1, 2, etc.. Is there a way to change

[NTG-context] Re: Framed Text with Chapter Numbers as Counter

2023-09-17 Thread Bruce Horrocks
> On 16 Sep 2023, at 21:28, Jeroen wrote: > > This MWE has a framed text for some verbatim text (code) with as title ref. a > counter 1, 2, etc.. Is there a way to change this frame text title as > following with the chapter number and a sequential number and th

[NTG-context] Framed Text with Chapter Numbers as Counter

2023-09-16 Thread Jeroen
This MWE has a framed text for some verbatim text (code) with as title ref. a counter 1, 2, etc.. Is there a way to change this frame text title as following with the chapter number and a sequential number and the title. Code Fragment 1.1 (The First Title) Code Fragment 1.2 (The Second Title

[NTG-context] Re: Reduce space between lines in Natural Tables

2023-09-11 Thread Wolfgang Schuster
Jeroen schrieb am 10.09.2023 um 22:05: Is there an easy way to reduce the line space between rows in a natural table so the table takes less vertical space. Natural tables and extreme tables take extra vertical space because the table cell use the framed-mechanism which add a small margin

[NTG-context] Re: Equivalent of the \cancel command with conTeXt

2023-08-22 Thread Fabrice Couvreur
; \ifmmode > \mframed[background=canceloverlay, frame=off, offset=overlay]{{#1}}% > \else% > \framed[background=canceloverlay, frame=off, offset=overlay]{{#1}}% > \fi% > } > > Maybe something else is available nowadays. > > A. Christe > Le 22 août 2023 à 12

[NTG-context] Re: Equivalent of the \cancel command with conTeXt

2023-08-22 Thread Alexandre Christe
; \stopuniqueMPgraphic \defineoverlay[canceloverlay][\uniqueMPgraphic{cross out}] \define[1]\cancel{%  \ifmmode  \mframed[background=canceloverlay, frame=off, offset=overlay]{{#1}}%  \else%  \framed[background=canceloverlay, frame=off, offset=overlay]{{#1}}%  \fi% } Maybe something else is available nowadays

[NTG-context] Re: [ odd spacing ]

2023-08-15 Thread Pablo Rodriguez
On 8/15/23 21:48, vm via ntg-context wrote: > [...] > A different approach is to use \dontleavehmode In that case, \dorecurse is your friend, such as in: \starttext \startTEXpage[offset=10mm, pagestate=start] \dorecurse{5}{ \dontleavehmode \framed[frame=off]{\externalfigure[p1-4_4-01-56-

[NTG-context] Re: [ odd spacing ]

2023-08-15 Thread vm via ntg-context
thanks! On 15/08/2023 21:26, Hans Hagen via ntg-context wrote: you're missing \startcaption \stopcaption after each content section indeed, adding \startcaption\stopcaption at each line will make the spacing equal. A different approach is to use \dontleavehmode \dontleavehmode \framed

[NTG-context] Re: upload

2023-08-10 Thread Thangalin
ter the meeting) but here is one: > > \starttext > > \defineoverlay >[test] >[\color > [blue] > {TEST >\inframed > [foregroundcolor=red] > {xxx} >TEST}] > > \fr

[NTG-context] upload

2023-08-09 Thread Hans Hagen
} TEST}] \framed [background=test, foregroundstyle=\switchtobodyfont[small]] {test} \stoptext From now on many commands accept (properly) nested [] inside commands that use [] as fences (like the setup commands) where it makes sense. It is up to the user

[NTG-context] Re: Ukrainian hyphenation?

2023-07-19 Thread Hans Hagen
=style:oblique, force=yes, rscale=1.0] \definefontfamily [archimate] [ss] [Helvetica] \setupbodyfont[archimate] \starttext \setuplanguage[en][patterns={ru}]\mainlanguage[ru] {\framed[frame=on,align=flushleft,width=7cm]{Техніка здатна до фізичної поведінки (на відміну від інформаційної поведінки

[NTG-context] Ukrainian hyphenation?

2023-07-18 Thread Gerben Wierda
[archimate] [ss] [Helvetica] \setupbodyfont[archimate] \starttext \setuplanguage[en][patterns={ru}]\mainlanguage[ru] {\framed[frame=on,align=flushleft,width=7cm]{Техніка здатна до фізичної поведінки (на відміну від інформаційної поведінки). Наприклад `Металургійний комбінат'.}}\\ \setuplanguage[ua

[NTG-context] Re: depth of framed

2023-07-16 Thread Wolfgang Schuster
Hans van der Meer via ntg-context schrieb am 16.07.2023 um 12:14: I cannot get rid of some depth in framed. Used various combinations of the depth and backgrounddepth setting, nothing helps. What am I doing wrong? Or is something in \framed not working in the way I expected? 1. Include your

[NTG-context] depth of framed

2023-07-16 Thread Hans van der Meer via ntg-context
I cannot get rid of some depth in framed. Used various combinations of the depth and backgrounddepth setting, nothing helps.What am I doing wrong? Or is something in \framed not working in the way I expected?See the accompanying MWE. yours sincerelydr. Hans van der Meer framedepth.pdf

[NTG-context] viewer layers (optional content groups, OCG)

2023-06-19 Thread Henning Hraban Ramm via ntg-context
r[Gebuesch] Hier versteckt sich ein Wolf... \stopviewerlayer Bäume, Bäume, Bäume... \viewerlayer[Gebuesch]{... und ein Rotkehlchen} \startviewerlayer[Versteck]Rumpelwicht\stopviewerlayer \defineoverlay[MitVersteck] [{\overlayrollbutton[VideLayer{Versteck}][HideLayer{Versteck}]}] \framed[

[NTG-context] upload

2023-05-27 Thread Hans Hagen via ntg-context
Hi, I uploaded a new lmtx. Apart from the modules installer (that Hraban has to check) and subtle improvements in math (we're now in tweaking penalties mode) there are a few changes: - The endstrut in framed got lost but is back again; there is now alao a location=inline option. - Single

Re: [NTG-context] text under page floats

2023-05-24 Thread Henning Hraban Ramm via ntg-context
I found a MWE that shows the problem: """ \setuppapersize[C5] \showframe \starttext \startplacefigure[location=page,title={Pagefloat}] \framed[width=\textwidth,height=.75\textheight]{TEST} \stopplacefigure \dorecurse{4}{\section{Tufte \recurselevel} \samplefile{tuf

Re: [NTG-context] text under page floats

2023-05-24 Thread Henning Hraban Ramm via ntg-context
it in a simple example like this: """ \starttext \dorecurse{2}{\samplefile{tufte}} \startplacefigure[location=page,title={Pagefloat}] \framed[width=\textwidth,height=.5\textheight]{TEST} \stopplacefigure \dorecurse{5}{\samplefile{knuth}} \stoptext """ What could

[NTG-context] text under page floats

2023-05-24 Thread Henning Hraban Ramm via ntg-context
t \dorecurse{2}{\samplefile{tufte}} \startplacefigure[location=page,title={Pagefloat}] \framed[width=\textwidth,height=.5\textheight]{TEST} \stopplacefigure \dorecurse{5}{\samplefile{knuth}} \stoptext """ What could cause this behavior? For what shoul

Re: [NTG-context] Inline framed verbatim text

2023-05-19 Thread Aditya Mahajan via ntg-context
On Fri, 19 May 2023, Jeroen via ntg-context wrote: > Many thanks. Is there a proper way to add some space (a couple of pt or em) > to the left and the right of the text itself so the frame does not get so > close to the text? \framed[loffset=0.2ex, roffset=0.2ex]{...} Also s

Re: [NTG-context] Inline framed verbatim text

2023-05-19 Thread Jeroen via ntg-context
chrieb am 19.05.2023 um 14:22: > > In order to get some inline framed verbatim text, I have in the past > > always used the following: > > > > \starttext > > > > This is an > > \inframed > > [frame=on, > > corner=00, > > radius=2mm,of

Re: [NTG-context] Inline framed verbatim text

2023-05-19 Thread Wolfgang Schuster via ntg-context
Jeroen via ntg-context schrieb am 19.05.2023 um 14:22: In order to get some inline framed verbatim text, I have in the past always used the following: \starttext This is an \inframed   [frame=on,   corner=00, radius=2mm,offset=-1.5pt]   {\ttx \bf example} \stoptext Since this has come-up

[NTG-context] Inline framed verbatim text

2023-05-19 Thread Jeroen via ntg-context
In order to get some inline framed verbatim text, I have in the past always used the following: \starttext This is an \inframed [frame=on, corner=00, radius=2mm,offset=-1.5pt] {\ttx \bf example} \stoptext Since this has come-up more and more often, I created the following: \define[1

Re: [NTG-context] \placeinitial doesn't work inside \framedtext (or \framed)

2023-05-16 Thread 李延瑞
Gerben Wierda via ntg-context 于2023年5月17日周三 06:42写道: > I did a simple thing, replace a \framed by \framedtext to get > \placeinitial working but that doesn't seem to work automatically: > > %== > \starttext > \setupinitial[n=2,text=Knuth]\placei

[NTG-context] \placeinitial doesn't work inside \framedtext (or \framed)

2023-05-16 Thread Gerben Wierda via ntg-context
I did a simple thing, replace a \framed by \framedtext to get \placeinitial working but that doesn't seem to work automatically: %== \starttext \setupinitial[n=2,text=Knuth]\placeinitial\input knuth \framed[align=flushleft]{\setupinitial[n=2,text=Knuth]\placeinitial

Re: [NTG-context] Flushright problems with Japanese

2023-05-16 Thread Wolfgang Schuster via ntg-context
Gerben Wierda via ntg-context schrieb am 16.05.2023 um 09:54: That does not make a difference. Output of both lines \framed[width=\textwidth,frame=off,align=flushright]{作図:A bit of text} \framed[width=\textwidth,frame=off,align=flushright,broad]{作図:A bit of text} \framed[width=\textwidth

Re: [NTG-context] Flushright problems with Japanese

2023-05-16 Thread Gerben Wierda via ntg-context
That does not make a difference. Output of both lines \framed[width=\textwidth,frame=off,align=flushright]{作図:A bit of text} \framed[width=\textwidth,frame=off,align=flushright,broad]{作図:A bit of text} is identical. Gerben > On 16 May 2023, at 03:36, Li Yanrui (李延瑞) via ntg-context >

Re: [NTG-context] Flushright problems with Japanese

2023-05-15 Thread 李延瑞
script [nihongo] > \stopsetups > \setuplanguage [ja] [setups=japanese] > \mainlanguage [ja] > > \starttext > \setupindenting[none] > \setupindenting[no] > \framed[width=\textwidth,frame=off,align=flushleft]{作図:A bit of text} > \framed[width=\textwidth,frame=off,align=flushright]{作図:A

[NTG-context] \placeinitial inside \framed?

2023-05-15 Thread Gerben Wierda via ntg-context
I'd like to use a drop cap inside a \framed, but it doesn't work. Minimal example: %== \starttext \setupinitial[n=2,text=Knuth]\placeinitial\input knuth \framed[align=flushleft]{\setupinitial[n=2,text=Knuth]\placeinitial\input knuth } \stoptext

[NTG-context] Flushright problems with Japanese

2023-05-15 Thread Gerben Wierda via ntg-context
=style:W5, force=yes] \definefontfamily [archimate] [ss] [Optima] \setupbodyfont[archimate] \startsetups [japanese] \setscript [nihongo] \stopsetups \setuplanguage [ja] [setups=japanese] \mainlanguage [ja] \starttext \setupindenting[none] \setupindenting[no] \framed[width=\textwidth,frame=off

[NTG-context] Custom TOC with makeup and setups

2023-05-10 Thread Jethro Djan via ntg-context
] [renderingsetup=list:toclist] \setupheadtext[section=Table of Contents] \startsetups toclist \framed[align=normal, frame=off]{\placelist [section] [criterium=all, alternative=toclist]} \stopsetups \definehspace[tspace][4cm] \setupframed[ height=fit, width=fit, location=middle, frame

Re: [NTG-context] \setupTABLE: framecolor

2023-03-25 Thread jbf via ntg-context
not affect TABLE as such since it is \framed we are talking about really). Bruce's suggestion of a dummy row is a simple one, and it works. But I will also look at your solution too. Am always keen to have more than one arrow in the quiver! Julian On 25/3/23 20:48, Henning Hraban Ramm via ntg

Re: [NTG-context] \setupTABLE: framecolor

2023-03-25 Thread Henning Hraban Ramm via ntg-context
in black. I have tried all kinds of combinations but unsuccessfully. Table cells are based on \framed, and there doesn’t seem to be an option to have different colors of parts of the frame (e.g. bottomframecolor…) You can use a MetaPost graphic as background, like in the “diagonal” example

Re: [NTG-context] rotated headers in natural tables

2023-03-17 Thread Wolfgang Schuster via ntg-context
in a framed (and therefore also natural tables and extreme tables) with align=high, align=low and align=lohi. \bTR[align={middle,low},strut=no]     \bTH \dontleavehmode\rotate{animal} \eTH     \bTH \dontleavehmode\rotate{size} \eTH     \bTH \dontleavehmode\rotate{weight} \eTH     \bTH \dontleavehmode

Re: [NTG-context] Absolute positioning of \startcombination... \stopcombination

2023-03-17 Thread Keith McKay via ntg-context
, footer=0.75cm, ] \definelayer[test3] %[x=.5\paperwidth, y=.5\paperheight] [x=.5\textwidth, y=.5\textheight] %\setupbackgrounds[page] \setupbackgrounds[text] [background=test3] \starttext \setlayer[test3][location={middle}] \framed[offset=overlay

Re: [NTG-context] Absolute positioning of \startcombination... \stopcombination

2023-03-16 Thread Pablo Rodriguez via ntg-context
grounds[page] \setupbackgrounds[text] [background=test3] \starttext \setlayer[test3][location={middle}] \framed[offset=overlay]{{\startcombination[nx=3,ny=1,distance=15mm] {\externalfigure[cow][width=15mm]}{} \rotate[rotation=90]{\externalfigure[cow

Re: [NTG-context] Visual highlighted text with title, mix of enumeration and framedtext

2023-03-06 Thread Henning Hraban Ramm via ntg-context
t that can produce something like in the attached picture? If you don’t need an enumeration, then don’t use one. Did you try text backgrounds? https://wiki.contextgarden.net/TextBackground And then use the plethora of \framed option

Re: [NTG-context] Curriculum example not working anymore (repost)

2023-02-24 Thread Jan-Erik Hägglöf via ntg-context
Dear List! I’ve managed to solve the issue with some modification, though it seems not possible to handle it within a frame. See example below Original settings in m-resume.tex \define[5]\EDUITEM{\framed[frame=off,align=right,width=broad] % The reason seems to be the frame command

Re: [NTG-context] Chapter number and titles in separate lines with grid layout

2023-02-15 Thread Alex Leray via ntg-context
I somehow found a way. It doesn't work on my minimal example but it does in my real doc. I tested a lot of thing but I think it was thanks to the offset=none parameters For the record: ### \define[2]\MySection{ \framed[ location=top, strut=no, offset=none

Re: [NTG-context] Chapter number and titles in separate lines with grid layout

2023-02-15 Thread Rik Kabel via ntg-context
On 2023-02-15 08:44, Alex Leray via ntg-context wrote: \showframe \showlayout \showgrid \setuplayout[     grid=yes, ] \define[2]\MySection{\framed[     location=keep,     frame=on,     width=broad,     % height=22pt,     align=middle ]{{#1.\\#2}}} \setuphead[section][     strut

Re: [NTG-context] Chapter number and titles in separate lines with grid layout

2023-02-15 Thread Rik Kabel via ntg-context
On 2023-02-15 08:44, Alex Leray via ntg-context wrote: \showframe \showlayout \showgrid \setuplayout[     grid=yes, ] \define[2]\MySection{\framed[     location=keep,     frame=on,     width=broad,     % height=22pt,     align=middle ]{{#1.\\#2}}} \setuphead[section][     strut

[NTG-context] Chapter number and titles in separate lines with grid layout

2023-02-15 Thread Alex Leray via ntg-context
above the (framed) title and align the section number with the first line (it's on the second line) Any idea? Many thanks. ### \showframe \showlayout \showgrid \setuplayout[ grid=yes, ] \define[2]\MySection{\framed[ location=keep, frame=on, width=broad, % height=22pt

Re: [NTG-context] Chapter title in MetaFun manual.

2023-02-10 Thread Jeong Dal via ntg-context
ithcolor .625yellow) ; > draw fullcircle xscaled 1.5cm yscaled 1cm ; > \stopuseMPgraphic > > %\startnotmode[proof] > % \defineoverlay[circled][\useMPgraphic{circled}] > %\stopnotmode > > \define[1]\Circled% > {\framed > [background=circled,frame=off,offset=overlay] >

[NTG-context] Chapter title in MetaFun manual.

2023-02-10 Thread Jeong Dal via ntg-context
led% {\framed [background=circled,frame=off,offset=overlay] {\color[darkred]{#1}}} \setuppagenumbering[location=] \setupheadertexts[margin][][\hbox to \hsize{\hss\Circled\pagenumber\hss}] \startuniqueMPgraphic{titled} path p ; p := unitsquare xscaled \overlaywidth yscaled \overlayhei

Re: [NTG-context] Problem using \scale

2023-02-10 Thread Hans Hagen via ntg-context
\startbuffer[address] Name \crlf Address 1 \crlf A long line that wraps \crlf Town \crlf Postcode \stopbuffer \framed[width=3cm,align=flushleft]{\getbuffer[address]} \framed[width=3cm,align=flushleft]{\scale[factor=fit]{\getbuffer[address]}} \stoptext \starttext \startbuffer[address] Name Address

Re: [NTG-context] Problem using \scale

2023-02-09 Thread Henning Hraban Ramm via ntg-context
\startbuffer[address] Name \crlf Address 1 \crlf A long line that wraps \crlf Town \crlf Postcode \stopbuffer \framed[width=3cm,align=flushleft]{\getbuffer[address]} \framed[width=3cm,align=flushleft]{\scale[factor=fit]{\getbuffer[address]}} \stoptext Did you try \framedtext instead of \framed

[NTG-context] Problem using \scale

2023-02-09 Thread Bruce Horrocks via ntg-context
that wraps \crlf Town \crlf Postcode \stopbuffer \framed[width=3cm,align=flushleft]{\getbuffer[address]} \framed[width=3cm,align=flushleft]{\scale[factor=fit]{\getbuffer[address]}} \stoptext — Bruce Horrocks Hampshire, UK

Re: [NTG-context] A corner case relating to corners!

2023-02-05 Thread Hans Hagen via ntg-context
EXpage[offset=1dk] \dontleavehmode\ruledhbox{\framed [framecolor=red, framecorner=#1, frameradius=\zeropoint] {TEST #1}} \ruledhbox{\framed [framecolor=red, framecorner=#1, frameradius=5pt] {T

[NTG-context] A corner case relating to corners!

2023-02-04 Thread Bruce Horrocks via ntg-context
pdated or should the change be reverted for backwards compatibility? MWE: \starttext \framed[corner=7]{Some text} \stoptext With value 07 the frame doesn't display, with value 7 the frame appears as expected. (Readers with a long-haired white cat can try corner=007) ;-) Version: ConTeX

Re: [NTG-context] Issue with location parameter in matrix

2023-01-09 Thread Jacob Kauffmann via ntg-context
One trick is to wrap the matrices inside a framed environment and putting the location parameter there: \starttext \startformula \startmatrix[left={\left(},right={\right)}] \NC A \NC B \NR \NC C \NC D \NR \stopmatrix = \startframed[location=top,frame=no,offset=none] \startmatrix[left={\left

[NTG-context] Double Lines

2023-01-02 Thread Ursula Hermann via ntg-context
Dear List, The following example is from the mailing list: I would like to have double vertical Lines with $\Vert instead of \VL, and also \HL. How can I do this with an Math Modus? \setupcolors[state=start] \starttext \null\vskip15ex \hskip1em\framed[orientation=90,frame=off]{\bf

Re: [NTG-context] Is this possible to do the same

2022-12-12 Thread Ursula Hermann via ntg-context
; \stopuniqueMPgraphic \defineoverlay[canceloverlay][\uniqueMPgraphic{cross out}] \define[1]\cancel{% \ifmmode \mframed[background=canceloverlay, frame=off, offset=overlay]{{#1}}% \else% \framed[background=canceloverlay, frame=off, offset=overlay]{{#1}}% \fi% } \starttext \dots E.g

Re: [NTG-context] Is this possible to do the same

2022-12-12 Thread Gavin via ntg-context
scaled .8pt ; \stopuniqueMPgraphic \defineoverlay[canceloverlay][\uniqueMPgraphic{cross out}] \define[1]\cancel{% \ifmmode \mframed[background=canceloverlay, frame=off, offset=overlay]{{#1}}% \else% \framed[background=canceloverlay, frame=off, offset=overlay]{{#1}}% \fi% } \starttext

Re: [NTG-context] \hpos in math

2022-12-06 Thread Gavin via ntg-context
\mpos macro that uses >> \hpos but sets the contents as display-style math. This isn’t great for >> spacing, and it does't adapt to different math styles. \framed has a math >> version, \mframed, that sets the contents in the appropriate math style. If >> anyone know a way to

Re: [NTG-context] \hpos in math

2022-12-06 Thread Hans Hagen via ntg-context
version of \hpos? The contents of \hpos are set as text, even when \hpos is in mathematics, so I wrote an \mpos macro that uses \hpos but sets the contents as display-style math. This isn’t great for spacing, and it does't adapt to different math styles. \framed has a math version, \mframed

[NTG-context] \hpos in math

2022-12-05 Thread Gavin via ntg-context
version of \hpos? The contents of \hpos are set as text, even when \hpos is in mathematics, so I wrote an \mpos macro that uses \hpos but sets the contents as display-style math. This isn’t great for spacing, and it does't adapt to different math styles. \framed has a math version, \mframed

Re: [NTG-context] Why are my captions overlapping next text in combinations?

2022-11-26 Thread Wolfgang Schuster via ntg-context
Joel via ntg-context schrieb am 25.11.2022 um 23:25: I have some combinations used throughout my document like this: \starttext \startcombination[4*2]             {%  \framed[width=.25\textwidth, height=.25\textwidth]{}%  }{%                 \strut word \\ \thinrule\hairline\hairline

[NTG-context] Why are my captions overlapping next text in combinations?

2022-11-25 Thread Joel via ntg-context
I have some combinations used throughout my document like this: \starttext   \startcombination[4*2]            {%                 \framed[width=.25\textwidth, height=.25\textwidth]{}%             }{%                 \strut word \\ \thinrule\hairline\hairline

Re: [NTG-context] overprinting black

2022-11-09 Thread Duncan Hothersall via ntg-context
ntg-context < ntg-context@ntg.nl> wrote: > I’m not sure if this ever worked, but at least in latest LMTX it doesn’t: > > """ > \setupcolors[state=start,cmyk=yes,rgb=no,intent=overprint] > > \starttext > > \framed[ >background=color, >ba

[NTG-context] overprinting black

2022-11-09 Thread Henning Hraban Ramm via ntg-context
I’m not sure if this ever worked, but at least in latest LMTX it doesn’t: """ \setupcolors[state=start,cmyk=yes,rgb=no,intent=overprint] \starttext \framed[ background=color, backgroundcolor=yellow, ]{\ss\bfd Black should always overprint. } \stoptext ""&q

  1   2   3   4   5   6   7   8   9   10   >